package pierwszy.wordPressPageObjects.wordPressTcs;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;

import pierwszy.wordPressPageObjects.AdminLoginPage;
import pierwszy.wordPressPageObjects.AllPostsPage;

@Test
public class TestEditPostUsingPageObjects {
	WebDriver driver = new FirefoxDriver();
	
	public void editPost(){
		AdminLoginPage loginPage = new AdminLoginPage(driver).get();
		AllPostsPage allPostsPage = loginPage.login();
		allPostsPage.editAPost("Create New Post Using PageObjects" , "Editing Post using PageObjects", "Test framework low maintenance");
	}
}
